<?php
interface XDBDriver{
	public function name();
	public function connect();
	public function close();
	public function exec($sql);	
	public function query($sql);
	public function loadTable($tableName);
	public function lastId();
	public function escape($str);
	public function offsetKeyword();
	public function sizeKeyword();
	public function error();
	public function hasError();
	public function version();
	public function insert(XTable $table, XModel $model);
	public function update(XTable $table, XModel $model);
	public function remove(XTable $table, XModel $model);
	public function queryCriteria(XTable $table, XCriteria $criteria);
}
?>